import React from 'react';
import { Carousel } from 'antd';
function Swiper(props) {
    return (
        <div className='swiper'>
            <Carousel autoplay>
                {
                    props.swiperList.length&&props.swiperList.map((item)=>{
                        return(
                        <div key={item.id} className='banner'>
                            <img src={item.img} alt="" />
                        </div>
                        )
                    })
                }
            </Carousel>
        </div>
    );
}

export default Swiper;